Integrand size = 25, antiderivative size = 100 \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3744, 462, 283, 223, 212} \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \]
[In]
[Out]
Rule 212
Rule 223
Rule 283
Rule 462
Rule 3744
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (1+x^2\right ) \sqrt {a+b x^2}}{x^4} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {\text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x^2} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {b \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f}+\frac {b \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f} \\ & = \frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {\cot ^3(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 a f} \\ \end{align*}
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 4.58 (sec) , antiderivative size = 204, normalized size of antiderivative = 2.04 \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=-\frac {\left (\left (6 a^2+11 a b+3 b^2+4 \left (a^2-3 a b-b^2\right ) \cos (2 (e+f x))+\left (-2 a^2+a b+b^2\right ) \cos (4 (e+f x))\right ) \csc ^4(e+f x)-12 \sqrt {2} a b \sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt {2}}\right ),1\right )\right ) \tan (e+f x)}{12 \sqrt {2} a f \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^2(e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(339\) vs. \(2(88)=176\).
Time = 3.98 (sec) , antiderivative size = 340, normalized size of antiderivative = 3.40
method | result | size |
default | \(-\frac {\sqrt {a +b \tan \left (f x +e \right )^{2}}\, \left (3 a \sqrt {b}\, \operatorname {arctanh}\left (\frac {\sqrt {\frac {a \cos \left (f x +e \right )^{2}+b \sin \left (f x +e \right )^{2}}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \left (\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {b}}\right ) \cot \left (f x +e \right )^{2}+\sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, b \cot \left (f x +e \right )-3 a \sqrt {b}\, \operatorname {arctanh}\left (\frac {\sqrt {\frac {a \cos \left (f x +e \right )^{2}+b \sin \left (f x +e \right )^{2}}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, \left (\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {b}}\right ) \cot \left (f x +e \right ) \csc \left (f x +e \right )-2 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, a \cot \left (f x +e \right )^{3}+3 \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}\, a \cot \left (f x +e \right ) \csc \left (f x +e \right )^{2}\right )}{3 f a \sqrt {\frac {a \cos \left (f x +e \right )^{2}-b \cos \left (f x +e \right )^{2}+b}{\left (\cos \left (f x +e \right )+1\right )^{2}}}}\) | \(340\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 204 vs. \(2 (88) = 176\).
Time = 0.45 (sec) , antiderivative size = 435, normalized size of antiderivative = 4.35 \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\left [\frac {3 \, {\left (a \cos \left (f x + e\right )^{2} - a\right )} \sqrt {b} \log \left (\frac {{\left (a^{2} - 8 \, a b + 8 \, b^{2}\right )} \cos \left (f x + e\right )^{4} + 8 \, {\left (a b - 2 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, {\left ({\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \sin \left (f x + e\right ) + 8 \, b^{2}}{\cos \left (f x + e\right )^{4}}\right ) \sin \left (f x + e\right ) - 4 \, {\left ({\left (2 \, a + b\right )} \cos \left (f x + e\right )^{3} - {\left (3 \, a + b\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{12 \, {\left (a f \cos \left (f x + e\right )^{2} - a f\right )} \sin \left (f x + e\right )}, -\frac {3 \, {\left (a \cos \left (f x + e\right )^{2} - a\right )} \sqrt {-b} \arctan \left (\frac {{\left ({\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, {\left ({\left (a b - b^{2}\right )} \cos \left (f x + e\right )^{2} + b^{2}\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + 2 \, {\left ({\left (2 \, a + b\right )} \cos \left (f x + e\right )^{3} - {\left (3 \, a + b\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{6 \, {\left (a f \cos \left (f x + e\right )^{2} - a f\right )} \sin \left (f x + e\right )}\right ] \]
[In]
[Out]
\[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int \sqrt {a + b \tan ^{2}{\left (e + f x \right )}} \csc ^{4}{\left (e + f x \right )}\, dx \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.76 \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {3 \, \sqrt {b} \operatorname {arsinh}\left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right ) - \frac {3 \, \sqrt {b \tan \left (f x + e\right )^{2} + a}}{\tan \left (f x + e\right )} - \frac {{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}}}{a \tan \left (f x + e\right )^{3}}}{3 \, f} \]
[In]
[Out]
\[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int { \sqrt {b \tan \left (f x + e\right )^{2} + a} \csc \left (f x + e\right )^{4} \,d x } \]
[In]
[Out]
Timed out. \[ \int \csc ^4(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int \frac {\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}}{{\sin \left (e+f\,x\right )}^4} \,d x \]
[In]
[Out]